package com.yq.cp.mapper.permission;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yq.cp.entity.permission.RolePermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zh
 * @since 2022-09-21
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    @Delete("DELETE FROM t_role_permission WHERE role_id=#{roleId}")
    void deleteByRoleId(@Param("roleId") Long roleId);
}
